package com.vhall.component.entity.subject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 会议专题表
 *
 * @author jian.yang
 */
@Data
@TableName("subject")
public class SubjectEntity implements Serializable {

    private static final long serialVersionUID = -6119742584452861458L;
    /**
     * 主键
     */
    @JsonProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 专题名称
     */
    @TableField("name")
    @JsonProperty(value = "name")
    private String name;

    /**
     * 会议简介
     */
    @TableField("introduction")
    @JsonProperty(value = "introduction")
    private String introduction;

    /**
     * 封面图片地址
     */
    @TableField("cover_image")
    @JsonProperty(value = "cover_image")
    private String coverImage;

    /**
     * 用户id
     */
    @TableField("account_id")
    @JsonProperty(value = "account_id")
    private Integer accountId;

    /**
     * 专题状态： 1--正常, 2--删除
     */
    @TableField("subject_status")
    @JsonProperty(value = "subject_status")
    private Integer subjectStatus;

    /**
     * 创建时间
     */
    @TableField("created_at")
    @JsonProperty(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    @JsonProperty(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    @JsonProperty(value = "deleted_at")
    private LocalDateTime deletedAt;


}
